package com.wanwu.channel.common.enums;

public enum WeixinRefundStatusEnums {

    SUCCESS("SUCCESS", "退款成功"),
    REFUNDCLOSE("REFUNDCLOSE", "退款关闭"),
    PROCESSING("PROCESSING", "退款处理中"),
    CHANGE("CHANGE", "退款异常，退款到银行发现用户的卡作废或者冻结了，导致原路退款银行卡失败，可前往商户平台（pay.weixin.qq.com）-交易中心，手动处理此笔退款。$n为下标，从0开始编号。"),


    ;

    private String code;
    private String desc;

    WeixinRefundStatusEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static WeixinRefundStatusEnums getTradeStatusEnum(String code) {
        for (WeixinRefundStatusEnums v : WeixinRefundStatusEnums.values()) {
            if (code.equals(v.getCode())) {
                return v;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
